/* 
 * File:   IdDocs.h
 * Author: eduardo
 *
 * Created on 26 de noviembre de 2012, 14:51
 */

#ifndef IDDOCS_H
#define	IDDOCS_H

#include <string>
using namespace std;

// db
#include <odb/core.hxx>

#pragma db object
class IdDocs {
public:
    IdDocs(int id, string doc);
    ~IdDocs();
    
    int getID();
    const string& getDoc() const;

private:
    IdDocs() {
    }
    friend class odb::access;

#pragma db id
    int _id;
    string _doc;
};

#endif	/* IDDOCS_H */

